<template>
	<view>
		<u-cell-group :border="false">
			<u-cell :border="false">
				<u--text slot="title" :text="`标题：${notication.sTitle}`"   ></u--text>
			</u-cell>
			<u-cell :border="false">
				<u--text slot="title" type="info" :text="`发布者：${notication.sSender}`"></u--text>
			</u-cell>
			<u-cell>
				<u--text slot="title" type="info" :text="`发布时间: ${notication.tSendTime}`"></u--text>
			</u-cell>
		</u-cell-group>
		<view class="padding bg-white">
			<u-parse :content="notication.sContent"></u-parse>
		</view>
	</view>
</template>

<script>
	import notifyService from "@/api/notify/notifyService";
	export default {
		data() {
			return {
				notication: {}
			}
		},
		onLoad (option) {
			const _this = this;
			const eventChannel = _this.getOpenerEventChannel();
			eventChannel.on('acceptDataFromOpenerPage', function(data) {
				_this.notication = data.data;
				notifyService.updateMessStatusByGuid(_this.notication.uGuid).then();
			})
		}
	}
</script>

<style>

</style>
